WooCommerce\Square\Sync\Product_Import D

Total Complexity 236
Dependencies 12
Dependents 1
Total lines 1,374
Lines of code 760
Logical lines of code 441
Comment lines 302
Methods 21
Properties 0

Methods 21

Method Rating Maintainability Complexity Lines of code
save_variations()
D
24
46 150
save_product_meta()
D
28
39 122
import_products()
D
32 31 94
extract_product_data()
C
34 24 85
import_inventory()
B
37 17 72
wc_save_product_price()
A
50 14 28
create_product_from_square_data()
A
48 12 28
update_product()
A
51 10 24
record_error()
A
53 10 19
import_product()
S
53 7 21
extract_square_item_variation_data()
S
50 5 28
clear_product()
S
58 4 16
item_variation_has_matching_sku()
S
60 4 13
get_attribute_taxonomy_by_slug()
S
63 3 11
item_variation_has_missing_sku()
S
62 3 11
update_simple_product_to_variable()
S
54 2 22
save_product_images()
S
98 1 1
upload_product_image()
S
98 1 1
set_product_image_as_attachment()
S
98 1 1
get_import_api_limit()
S
74 1 4
assign_next_steps()
S
68 1 9